import request from '@/utils/request'

// 查询服务设施功能列表
export function listCfacility(query) {
  return request({
    url: '/camp/cfacility/list',
    method: 'get',
    params: query
  })
}

// 查询服务设施功能详细
export function getCfacility(facilityId) {
  return request({
    url: '/camp/cfacility/' + facilityId,
    method: 'get'
  })
}

// 新增服务设施功能
export function addCfacility(data) {
  return request({
    url: '/camp/cfacility',
    method: 'post',
    data: data
  })
}

// 修改服务设施功能
export function updateCfacility(data) {
  return request({
    url: '/camp/cfacility',
    method: 'put',
    data: data
  })
}

// 删除服务设施功能
export function delCfacility(facilityId) {
  return request({
    url: '/camp/cfacility/' + facilityId,
    method: 'delete'
  })
}
